package com.nbcb.fund.common.exception.exception;

import com.nbcb.fund.entity.code.FundCode;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author linqiankun
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class BusinessException extends RuntimeException {

    private String msg;

    private FundCode fundCode;

    public BusinessException(FundCode e) {
        this.fundCode = e;
    }

    public BusinessException(String msg) {
        this.msg = msg;
    }

    public BusinessException(Throwable t, FundCode e) {
        super(t);
        this.fundCode = e;
    }

    public BusinessException(Throwable t, String msg) {
        super(t);
        this.msg = msg;
    }


}
